import http from "../utils/request"
import {PageRequestType, ResponseType, PageResponseType} from "../types/Response";
import {AxiosResponse} from "axios";
import {LanguageType} from "./LanguageRequest";

const apiPrefix:string = "/ipAddress";

export async function addIpAddress(data: {url:string,source:string|null}): Promise<AxiosResponse<ResponseType<any>>> {
    return await http.request({
        data: data,
        url: apiPrefix,
        method: 'post'
    })
}
